//
//  ListResponse.swift
//  JTYP
//
//  Created by Groot on 2017/12/5.
//  Copyright © 2017年 inspur. All rights reserved.
//

import ObjectMapper

class ListResponse<T: Mappable>: BaseResponse {
    
    var data: [T]?
    var limit: Int?
    var start: Int?
    var total: Int?
    required init?(map: Map) {
        super.init(map: map)
    }
    
    override func mapping(map: Map) {
        super.mapping(map: map)
        data <- map["data.data"]
        
        limit <- map["data.limit"]
        start <- map["data.start"]
        total <- map["data.total"]

    }
    
}
